import request from '@/utils/request'

// 新增
export function addDatasourceBaseStruct(data) {
  return request({
    url: '/data/struct/save',
    method: 'post',
    data: data
  })
}

// 删除信息
export function delDatasourceBaseStruct(id) {
  return request({
    url: '/data/struct/del/?datasourceStructId=' + id,
    method: 'delete',
    data:id
  })
}
// 数据结构列表
export function DatasourceBaseStructList(query) {
  return request({
    url: '/data/struct/list',
    method: 'get',
    params: query
  })
}